package com.ibm.sc.osp.sample.web.controller;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class TemplateController {
    
//    @RequiresPermissions("test")
    @RequestMapping(value = "/index")
    public String index() {
        return "/index.html";
        //thymeleaf\jsp两种template同时开启时,使用thymeleaf的页面需要加.html后缀
        //单独开启时不需要指定任何后缀
    }
    
    @RequestMapping(value = "/upload")
    public String upload() {
        //使用CKEditor进行上传
        return "/upload.html";
    }
    
    @RequestMapping(value = "/server")
    public String server() {
        //作为CKFinder-server使用,详细配置见WEB/INF/ckfinder.xml
        return "server";
    }
}
